package com.demo.mapper;

import com.demo.pojo.entity.Student;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
* @description 针对表【student】的数据库操作Mapper
* @Entity com.demo.pojo.entity.Student
*/
@Mapper
public interface StudentMapper extends BaseMapper<Student> {

    @Select("select * from student where student_id = #{id}")
    Student selectById2(Integer id);

    @Select("select * from student where st_no = #{stNo}")
    Student selectByNO(Long stNo);
}


